<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="common_head.jsp" flush="true"></jsp:include>
</head>
<body>
	<section>
		<jsp:include page="nav.jsp" flush="true"></jsp:include>
		<article class="main_article">
			<form:form action="SubmitArticle" method="POST"	commandName="guestbookArticle">
				<article>
					<form:label path="writer">누구.....?</form:label>
					<form:input path="writer"/>
				</article>
				<article>
					<form:label path="contents">저만 볼게요 :-)</form:label>
					<form:input path="contents" />
				</article>
				<input type="submit" value="기억시켜줘.."/>
			</form:form>
		</article>
	</section>
	<section>
		<article class="main_article center">
			<c:forEach var="article" items="${articleList}">
				<c:out value="${article.contents}"/>
			</c:forEach>
		</article>
	</section>
</body>
</html>